      //登录状态的判断
       var username=document.getElementById('username').value;
    var uid=document.getElementById("uid").value;
    if(uid==0)
    {
        document.getElementById("post").onclick=function() {
            alert("您还没有登录,请先登录");
            return false;
        }
    }
    else {
        if(document.getElementById("login").innerHTML=='登录') {
            document.getElementById("login").innerHTML = document.getElementById("username").value;
            document.getElementById('login').href = url + "/Home/User/index";
            document.getElementById("post").href = url + "/Home/Post/post";
        }
    }
     